package com.wenx.reflect;

/**
 * Created by wenx on 2019-09-25 17:10
 */
public class ReflectTest {

    private int age;

    private String name;

    private int score;

    public ReflectTest() {
        System.out.println(11);
    }

    private ReflectTest(int age) {
        this.age = age;
        System.out.println("age = [" + age + "]");
    }

    public ReflectTest(int age, String name) {
        this.age = age;
        this.name = name;
        System.out.println("age = [" + age + "], name = [" + name + "]");
    }

    protected ReflectTest(String name) {
        this.name = name;
        System.out.println("name = [" + name + "]");
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}